﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace StockShark.Models
{
    // posiadane walory
    public class OwnedInstrument
    {
        public int Id { get; set; }
        public int BrokerageAccountId { get; set; }
        public int PaperId { get; set; }
        public int Quantity { get; set; }
        public virtual Instrument Paper { get; set; }
        public virtual BrokerageAccount BrokerageAccount { get; set; }

        public decimal TotalValue
        {
            get
            {
                return Paper.EstimatedPrice * Quantity;
            }
        }
    }
}